﻿using System;

namespace ScriptEngine.Script.Executor
{
	public interface IScriptExecutor : IScriptFuncExecutor
	{
		/// <summary>
		/// 以代码的形式运行
		/// </summary>
		/// <param name="code">代码</param>
		void RunWithCode(string code);


		/// <summary>
		/// 运行指定路径的文件
		/// </summary>
		/// <param name="filepath">文件路径</param>
		void RunWithPath(string filepath);


		/// <summary>
		/// 退出脚本的运行
		/// </summary>
		void Exit();
	}
}
